package com.shopping.mall.core.module.responseStatus.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface ResponseStatusMapper {
    @Select("select message from response_status_lan where language_id=#{languageId} and status=#{status}")
    String getMessageLan(String languageId,Integer status);

    @Select("select message from response_status where status=#{status}")
    String getMessage(Integer status);

    @Insert("insert into response_status (message,status) values (#{message},#{status})")
    void insertMessage(String message,Integer status);

    @Delete("delete from response_status")
    void deleteAll();

    @Select("select state from orders where id=#{id}")
    Integer getA(String id);
}
